package com.aoxon.cargo.service;

import java.util.HashMap;

import com.aoxon.cargo.bean.GsonBean;

public class SupGetClassifyListService extends MyService {

	/**
	 * 获取第一分类的列表
	 * 
	 * @return
	 */
	public GsonBean getGoodsClassifyOne(int startIndex, int length) {

		url = "oneType" + suffix;

		params = new HashMap<String, String>();
		params.put("startIndex", String.valueOf(startIndex));
		params.put("length", String.valueOf(length));

		return doPost();

	}

	/**
	 * 获取第二分类的列表
	 * 
	 * @return
	 */
	public GsonBean getGoodsClassifyTwo(int startIndex, int length,
			String strClassifyOne) {

		url = "twoType" + suffix;

		params = new HashMap<String, String>();
		params.put("oneType", strClassifyOne);
		params.put("startIndex", String.valueOf(startIndex));
		params.put("length", String.valueOf(length));

		return doPost();

	}
	
/*	public GsonBean getGoodsClassifyTwoById(int startIndex, int length,
			String classifyOneName) {

		url = "twoTypeByName" + suffix;

		params = new HashMap<String, String>();
		params.put("oneType", classifyOneName);
		params.put("startIndex", String.valueOf(startIndex));
		params.put("length", String.valueOf(length));

		return doPost();

	}*/

}
